<%-- 
    Document   : seleccionarTarjetaMadre
    Created on : 25-abr-2013, 23:40:25
    Author     : Eric
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@page import="src.j2ee.compumake.builders.BuilderLogin" %>
<%@page import="src.j2ee.compumake.builders.BuilderMenu" %>
<%@page import="src.j2ee.compumake.builders.BuilderTarjetaMadre" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Selección Tarjeta Madre</title>
        
        <link rel="stylesheet" href="CSS/default/default.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="CSS/nivo-slider.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="CSS/login.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="CSS/compumake.css" type="text/css" media="screen" />
        
        <script type="text/javascript" src="js/jquery-1.8.2.js"></script>
        <script type="text/javascript" src="js/jquery.nivo.slider.js"></script>
        <script type="text/javascript" src="js/login.js"></script>
        <script type="text/javascript" src="js/validacionesDeFormularios.js"></script>
        <script type="text/javascript">
        $(window).load(function() {
            $('#slider').nivoSlider();
        });
        </script>
        
    </head>
    <body>
        
        <div class="encabezado">
            
        </div>
        
        <div class="banner">
            <div id="foto">
                <div id="wrapper">
                    <div class="slider-wrapper theme-default">
                        <div id="slider" class="nivoSlider">
                            <img src="CSS/IMAGES/monitor.jpg" data-thumb="IMAGES/monitor.jpg" alt="" data-transition="slideInRight" />
                            <img src="CSS/IMAGES/teclado.jpg" data-thumb="IMAGES/teclado.jpg" alt="" data-transition="slideInLeft" />
                            <img src="CSS/IMAGES/discoDuro.jpg" data-thumb="IMAGES/discoDuro.jpg" alt="" data-transition="slideInRight" />
                            <img src="CSS/IMAGES/cpu.jpg" data-thumb="IMAGES/cpu.jpg" alt="" data-transition="slideInLeft" />
                            <img src="CSS/IMAGES/ram.jpg" data-thumb="IMAGES/ram.jpg" alt="" data-transition="slideInRight" />
                            <img src="CSS/IMAGES/procesador.jpg" data-thumb="IMAGES/procesador.jpg" alt="" data-transition="slideInLeft" />
                        </div>
                    </div>
                </div>
            </div>
            <div id="texto_banner">
                <h1 class="titulo_banner">COMPU-MAKE</h1>
                <p class="texto_banner">Construya su computadora empezando con la tarjeta madre</p>
            </div>
        </div>
        
        <!-- Menú -->
        <%
            String menuPrincipal;
            int logueado;
            if (session.getAttribute("banderaTipo") != null) {
                    logueado = Integer.parseInt(session.getAttribute("banderaTipo")
                                    .toString());
                    menuPrincipal = BuilderMenu.obtenerMenuPrincipal(logueado);
            } else {
                    menuPrincipal = BuilderMenu.obtenerMenuPrincipal(0);
            }
        %>
        <%=menuPrincipal%>
        <!-- Menú end -->
        
        <!-- Login Starts Here -->
        <%
            String seccionLogueado;
            int logueadoNuevo;
            if (session.getAttribute("banderaTipo") != null) {
                logueadoNuevo = Integer.parseInt(session.getAttribute("banderaTipo").toString());
                seccionLogueado = BuilderLogin.devolverSeccionLogin(logueadoNuevo);
            }
            else {
                seccionLogueado = BuilderLogin.devolverSeccionLogin(0);
            }
        %>
        <%=seccionLogueado%>
        <!-- Login Ends Here -->
        
        <div class="contenido">
            
            <div class="titulo_contenido">
                <p>Conjunto de todas las tarjetas madre</p>
            </div>
            
            <div class="subtitulo_contenido">
                <p>Seleccione una tarjeta madre para continuar</p>
            </div>
            
            <div class="form_usuario">
                <form name="seleccionarTarjetaMadre" action="SeleccionarTarjetaMadre" method="post" onsubmit="return registroTarjetaMadreValido()">
                    <%
                        String tablaTarjetasMadre;
                        tablaTarjetasMadre = BuilderTarjetaMadre.obtenerTablaDeTarjetasMadre();
                    %>
                    <%=tablaTarjetasMadre%>
                    
                    
                    
                </form>
            </div>
            
        </div>
        
        <div class="pie">
            
        </div>
        
    </body>
</html>
